<?php

namespace myAnnotation;

class ControllerAnnotationScan
{
    /**
     * @param array $call
     * @throws \ReflectionException
     */
    public function run(array $call)
    {
        /**@var $annotationScan AnnotationScan */
        $annotationScan = app(AnnotationScan::class);
        [$instance, $action] = $call;
        $annotationScan->readMethodAnnotation($instance, $action);
        $annotationScan->readPropertiesAnnotation($instance);
    }
}
